#pragma once
#ifdef XSOCKET_EXPORTS
#define XSOCKET_API __declspec(dllexport)
#else
#define XSOCKET_API __declspec(dllimport)
#endif // XSOCKET_EXPORTS

#include "XTcp.h"

class XSOCKET_API TcpThread
{
public:
	/*
	*@brief 线程入口函数     
	*/
	virtual void run() = 0;

	void setSocket(unsigned int sock);

protected:
	XTcp mClient;
};

